@extends('base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-body">
            <form action="{{route('callcenter.customer.store')}}" method="post" class="layui-form">
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">客户名称</label>
                    <div class="layui-input-inline" >
                        <input class="layui-input" type="text" name="name"  placeholder="请输入客户名称">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">联系人</label>
                    <div class="layui-input-inline" >
                        <input class="layui-input" type="text" name="contact_name"  placeholder="请输入联系人">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">联系电话</label>
                    <div class="layui-input-inline" >
                        <input class="layui-input" type="number" name="contact_phone" value="{{$phone}}" lay-verify="required|phone"  placeholder="请输入联系电话">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">客户分类</label>
                    <div class="layui-input-inline" >
                        <select name="type" id="">
                            <option value="0">无</option>
                            @foreach(config('freeswitch.customer_type') as $k => $v)
                                <option value="{{$k}}">{{$v}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="go" data-url="{{route('callcenter.customer.create')}}" >确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection

@section('script')
    @include('common.customer_js')
@endsection
